projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19bb1d
)
(lock_file): Use %lu instead of %d in sprintf because
author
Richard M. Stallman
<rms@gnu.org>
Wed, 13 Aug 1997 15:27:49 +0000
(15:27 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 13 Aug 1997 15:27:49 +0000
(15:27 +0000)
the variable named pid is unsigned long.
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index c478233d7e19ce6b71c4b18e0302e2032c6aeba6..55be9fb862897be33c677a0e2a6e774da294679e 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-347,7
+347,7
@@
lock_file (fn)
/* Else consider breaking the lock */
locker = (char *) alloca (strlen (lock_info.user) + strlen (lock_info.host)
+ LOCK_PID_MAX + 9);
- sprintf (locker, "%s@%s (pid %
d
)", lock_info.user, lock_info.host,
+ sprintf (locker, "%s@%s (pid %
lu
)", lock_info.user, lock_info.host,
lock_info.pid);
FREE_LOCK_INFO (lock_info);